/**
 * SOP模块路由配置
 * @description 开放平台管理模块的路由配置
 * @author AI Assistant
 * @since 1.0.0
 */

import { Layout } from '@/utils/routerHelper'

const { t } = useI18n()

const sopRouter: AppRouteRecordRaw = {
  path: '/sop',
  component: Layout,
  name: 'Sop',
  meta: {
    title: t('sop.menu.sop'),
    icon: 'ep:connection',
    alwaysShow: true
  },
  children: [
    // 应用管理
    {
      path: 'app',
      component: () => import('@/views/sop/app/index.vue'),
      name: 'SopApp',
      meta: {
        title: t('sop.menu.app'),
        icon: 'ep:grid',
        activeMenu: '/sop/app'
      }
    },
    // API日志管理
    {
      path: 'api-log',
      component: () => import('@/views/sop/apiLog/index.vue'),
      name: 'SopApiLog',
      meta: {
        title: t('sop.menu.apiLog'),
        icon: 'ep:document',
        activeMenu: '/sop/api-log'
      }
    },
    // 统计分析
    {
      path: 'statistics',
      component: () => import('@/views/sop/statistics/index.vue'),
      name: 'SopStatistics',
      meta: {
        title: t('sop.menu.statistics'),
        icon: 'ep:data-analysis',
        activeMenu: '/sop/statistics'
      }
    },
    // 通知记录
    {
      path: 'notify',
      component: () => import('@/views/sop/notify/index.vue'),
      name: 'SopNotify',
      meta: {
        title: t('sop.menu.notify'),
        icon: 'ep:bell',
        activeMenu: '/sop/notify'
      }
    }
  ]
}

export default sopRouter
